package com.insigma.business.qrcode.banner.controller;

import com.insigma.business.qrcode.banner.dto.BannerDTO;
import com.insigma.business.qrcode.banner.service.BannerService;
import com.insigma.business.qrcode.common.vo.BaseResponse;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;


@RestController
@RequestMapping("/app/banner")
public class BannerController {

    @Resource
    private BannerService bannerService;


    /**
     * 小程序端-banner列表查询
     */
    @PostMapping("/queryAllBanner")
    public BaseResponse<List<BannerDTO>> queryAllBanner() throws Exception {
        return bannerService.queryAll();
    }


}
